const http = require('http');
const url = require('url');
http.createServer((request, response) => {
    response.end(url.parse(request.url).pathname);
}).listen(3001, '127.0.0.1', ()=>{
    console.log('启动成功');
});